<?php // 4.0
class quote_new {
  function loaddata() {
    global $masterclass;

    $masterclass->loadmodule('customers_wap',$masterclass->mainconfig['moduledirectory'].'customers/customers_wap.func.php');

    $masterclass->websiteconfig['title'].='New Invoice - Select Customer';
    
  return;
  }
  
  function savedata() {
    global $masterclass;

     
  return;
  }
  
  function display() {
    global $masterclass;
    
    $strwhere=" (`active`='1') ";
    $arrcustomerslist=$masterclass->fetch_records('customers','',$strwhere,' `updated` DESC, `first`,`last` ');
    
    echo '<a href="'.$masterclass->mainconfig['dir'].$masterclass->mainconfig['htmldirectory'].'">Home</a> | <a href="'.$masterclass->mainconfig['dir'].$masterclass->mainconfig['htmldirectory'].'invoices/">Invoices</a> | <a href="'.$masterclass->mainconfig['dir'].$masterclass->mainconfig['htmldirectory'].'customers/">Customers</a><hr>';
  
    echo '<center><b>Select Customer</b></center><br>';
    $customersdata=$masterclass->allclasses['customers_wap']->display_customerlist($arrcustomerslist,$masterclass->mainconfig['dir'].$masterclass->mainconfig['htmldirectory'].'invoices/quote.php?customerid=');
    echo $customersdata['load_list'];

  return;
  }
}
?>
